package TestForOne;

/**
 * @author : zzr
 * @description :
 * @date :
 */
class Alg<T extends Comparable<T>> {
    public T findMax(T arr[]) {
        T max = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i].compareTo(max) > 0) {
                max = arr[i];
            }
        }
        return max;
    }
}
public class Test4 {
}
